import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { Button, FloatingPanel, Toast, Icon, Loading } from 'vant'
import 'normalize.css'
import '@vant/touch-emulator'
import 'vant/lib/index.css'
import IframeSDKManager from '@/plugins/iframeSDKManager'
import WXMiniProgramProxy from '@/plugins/wxMiniProgramProxy'

import App from './App.vue'
import router from './router'
import './mock/project' // 楼盘信息mock数据
import './mock/house' // 房源列表mock数据

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Button)
app.use(FloatingPanel)
app.use(Toast)
app.use(Icon)
app.use(Loading)
app.use(IframeSDKManager)
app.use(WXMiniProgramProxy)

app.mount('#app')
